<?php

namespace app\index\controller;

use coser\Controller;
use app\index\model\MenuModel;

class Menu extends Controller
{
    public function index()
    {
		$this->assign('hi',':)');
		$this->display('menu/index');
    }
	
	public function addMenu()
	{
		$data = [
			'item'	=>	'"时钟"',
			'top'	=>	'1',
			'pid'	=>  '1',
			'create_time'	=>	time(),
			'update_time'	=>	time(),
		];
		
		$menuModel = new MenuModel();
		$menuModel->add($data);
	}

	public function menuList()
	{
		$where = [
			't1.id' => 1
		];
		
		$menuModel = new MenuModel();
		$menuModel->getlist($where);
	}

}